#!/bin/bash

set -o pipefail

VALUE_RAW=${1}
HEX_RAW=$(echo "obase=16;${VALUE_RAW}" | bc)
HEX=$(echo "${HEX_RAW}" | tr [:upper:] [:lower:])
echo "DEC: ${VALUE_RAW}"
echo "HEX: 0x${HEX}"
